<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">-->
    <!--        </div>-->
    <!--    </div>-->
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('Label')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--            <input id="c-label" data-rule="required" class="form-control" name="row[label]" type="number">-->
    <!--        </div>-->
    <!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Label')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[label]',$labels,null,['class'=>'form-control', 'required'=>''])}
        </div>
    </div>
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('avatar_image')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--            <div class="input-group">-->
    <!--                <input id="c-avatar_image" data-rule="required" class="form-control" size="50" name="row[avatar_image]" type="text" value="0">-->
    <!--                <div class="input-group-addon no-border no-padding">-->
    <!--                    <span><button type="button" id="plupload-avatar_image" class="btn btn-danger plupload" data-input-id="c-avatar_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
    <!--                    <span><button type="button" id="fachoose-avatar_image" class="btn btn-primary fachoose" data-input-id="c-avatar_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
    <!--                </div>-->
    <!--                <span class="msg-box n-right" for="c-avatar_image"></span>-->
    <!--            </div>-->
    <!--            <ul class="row list-inline plupload-preview" id="p-avatar_image"></ul>-->
    <!--        </div>-->
    <!--    </div>-->
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('Class')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <input id="c-class" data-rule="required" class="form-control" name="row[class]" type="hidden" value="0">
    <input id="c-class" data-rule="required" class="form-control" name="row[status]" type="hidden" value="1">

    <!--        </div>-->
    <!--    </div>-->
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--            <div class="input-group">-->
    <!--                <input id="c-images" data-rule="required" class="form-control" size="50" name="row[images]" type="text" value="0">-->
    <!--                <div class="input-group-addon no-border no-padding">-->
    <!--                    <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
    <!--                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
    <!--                </div>-->
    <!--                <span class="msg-box n-right" for="c-images"></span>-->
    <!--            </div>-->
    <!--            <ul class="row list-inline plupload-preview" id="p-images"></ul>-->
    <!--        </div>-->
    <!--    </div>-->
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea id="c-content" data-rule="required" class="form-control" name="row[content]" ></textarea>
            </div>
        </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Video')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-video" data-rule="required" class="form-control" name="row[video]" type="text">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Video_image')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="input-group">-->
<!--                <input id="c-video_image" data-rule="required" class="form-control" size="50" name="row[video_image]"-->
<!--                       type="text" value="0">-->
<!--                <div class="input-group-addon no-border no-padding">-->
<!--                    <span><button type="button" id="plupload-video_image" class="btn btn-danger plupload"-->
<!--                                  data-input-id="c-video_image"-->
<!--                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"-->
<!--                                  data-multiple="false" data-preview-id="p-video_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
<!--                    <span><button type="button" id="fachoose-video_image" class="btn btn-primary fachoose"-->
<!--                                  data-input-id="c-video_image" data-mimetype="image/*" data-multiple="false"><i-->
<!--                            class="fa fa-list"></i> {:__('Choose')}</button></span>-->
<!--                </div>-->
<!--                <span class="msg-box n-right" for="c-video_image"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline plupload-preview" id="p-video_image"></ul>-->
<!--        </div>-->
<!--    </div>-->
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('Fh_image')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--            <div class="input-group">-->
    <!--                <input id="c-fh_image" data-rule="required" class="form-control" size="50" name="row[fh_image]" type="text" value="0">-->
    <!--                <div class="input-group-addon no-border no-padding">-->
    <!--                    <span><button type="button" id="plupload-fh_image" class="btn btn-danger plupload" data-input-id="c-fh_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-fh_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
    <!--                    <span><button type="button" id="fachoose-fh_image" class="btn btn-primary fachoose" data-input-id="c-fh_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
    <!--                </div>-->
    <!--                <span class="msg-box n-right" for="c-fh_image"></span>-->
    <!--            </div>-->
    <!--            <ul class="row list-inline plupload-preview" id="p-fh_image"></ul>-->
    <!--        </div>-->
    <!--    </div>-->
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('App_image')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--            <div class="input-group">-->
    <!--                <input id="c-app_image" data-rule="required" class="form-control" size="50" name="row[app_image]" type="text" value="0">-->
    <!--                <div class="input-group-addon no-border no-padding">-->
    <!--                    <span><button type="button" id="plupload-app_image" class="btn btn-danger plupload" data-input-id="c-app_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-app_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
    <!--                    <span><button type="button" id="fachoose-app_image" class="btn btn-primary fachoose" data-input-id="c-app_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
    <!--                </div>-->
    <!--                <span class="msg-box n-right" for="c-app_image"></span>-->
    <!--            </div>-->
    <!--            <ul class="row list-inline plupload-preview" id="p-app_image"></ul>-->
    <!--        </div>-->
    <!--    </div>-->
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('App_name')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--            <input id="c-app_name" data-rule="required" class="form-control" name="row[app_name]" type="text">-->
    <!--        </div>-->
    <!--    </div>-->
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('App_content')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--            <input id="c-app_content" data-rule="required" class="form-control" name="row[app_content]" type="text">-->
    <!--        </div>-->
    <!--    </div>-->
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('App_url')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--            <input id="c-app_url" data-rule="required" class="form-control" name="row[app_url]" type="text">-->
    <!--        </div>-->
    <!--    </div>-->
    <!--    <div class="form-group">-->
    <!--        <label class="control-label col-xs-12 col-sm-2">{:__('Fz_url')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--            <input id="c-fz_url" data-rule="required" class="form-control" name="row[fz_url]" type="text">-->
    <!--        </div>-->
    <!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fabulous')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fabulous" data-rule="required" class="form-control" name="row[fabulous]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stamp')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stamp" data-rule="required" class="form-control" name="row[stamp]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Browse')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-browse" data-rule="required" class="form-control" name="row[browse]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('评论数')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-browse" data-rule="required" class="form-control" name="row[comment]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">添加评论</label>
        <div class="col-xs-12 col-sm-9">
            <dl class="fieldlist skuAdd" data-name="skus" data-template="testtpl">
                <dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i>
                    {:__('Append')}</a></dd>
            </dl>
            <div>
            </div>
            <!--定义模板-->
            <script type="text/javascript" id="testtpl">
				<dd class="form-inline">
					<input type="text" name="comments[]" class="form-control" value="" size="10" placeholder="评论内容">
					</span>
					</div>
					<span class="msg-box n-right" for="t-image"></span>
					</div>
					<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span> <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
				</dd>
            </script>
            <!--添加规格结束-->
            <div class="form-group layer-footer">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                </div>
            </div>
</form>
<style>
    .fieldlist dd input:first-child {
        width: 368px;
    }
</style>
